import java.util.Random;

public class RedBag {

    public static void main(String[] args) {

        int[] arr = {9, 666, 188, 520, 99999};

        getRed(arr);
    }

    public static void getRed(int[] arr) {

        Random r = new Random();
        for (int i = 0; i < arr.length; i++) {

            int p = r.nextInt(arr.length);
            int temp = arr[p];
            arr[p] = arr[i];
            arr[i] = temp;
        }
        for (int i = 0; i < arr.length; i++) {

            System.out.println("第" + (i + 1) + "个粉丝抽中的红包金额为:");
            System.out.println(arr[i]);
        }
    }
}
